snprintf is C99, not C90.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 15 Nov 2002 06:10:08 +0000 (06:10 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 15 Nov 2002 06:10:08 +0000 (06:10 +0000)
Whack color and class so data will display on the GPS V.

gpsbabel/jeeps/gpsapp.c

index 4a02b4d6e7de0b2ad7e6e7c87842f597935f00e5..4937ea1e0338fce9b56c2e5ff58d55527dc91651 100644 (file)
@@ -267,7 +267,7 @@ static void GPS_A001(GPS_PPacket packet)
        tag = *p;
        data = GPS_Util_Get_Short(p+1);
 
-       snprintf(pb, sizeof(pb), "Capability '%c'.  Type %d", tag, data);
+       sprintf(pb, "Capability '%c'.  Type %d", tag, data);
        GPS_User(pb);
        
        /* Only one type of P[hysical] so far */
@@ -1876,9 +1876,9 @@ static void GPS_D109_Send(UC *data, GPS_PWay way, int32 *len)
     
     p = data;
 
-    *p++ = 1; /* D109 constant data (grrrr.) */
-    *p++ = way->wpt_class;
-    *p++ = way->colour;
+    *p++ = 1 /* way->wpt_class */;     /* For D109, the class must be 1 */
+    *p++ = 0 /* way->colour*/ ;                /* If non-zero, the waypoint is in 
+                                          invisible ink on the V. */
     *p++ = way->dspl;
     *p++ = 0x70;
     GPS_Util_Put_Short(p,way->smbl);